package cn.iocoder.yudao.module.book.controller.app.booksShell.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "管理后台 - 绘本集 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppCollectionsRespVO {

    @Schema(description = "绘本集id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27291")
    @ExcelProperty("绘本集id")
    private Integer collectionId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("标题")
    private String title;

    @Schema(description = "封面", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("封面")
    private String image;

    @Schema(description = "描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @ExcelProperty("描述")
    private String description;

    @Schema(description = "分类id", example = "27291")
    private Integer categoryId;

    @Schema(description = "是否为英文", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否为英文", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isEnglish;

    @Schema(description = "是否置顶")
    @ExcelProperty(value = "是否置顶", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isTop;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private String createTime;

    @Schema(description = "创建者")
    @ExcelProperty("创建者")
    private String creator;

    @Schema(description = "书本数量", example = "5")
    private Integer bookCnt;

}